﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x0200007D RID: 125
	public class TAlterFunctionStmt : TCustomSqlStatement
	{
		// Token: 0x06000303 RID: 771 RVA: 0x002F95EC File Offset: 0x002F77EC
		public TObjectName getFunctionName()
		{
			return this.functionName;
		}

		// Token: 0x06000304 RID: 772 RVA: 0x002F95F4 File Offset: 0x002F77F4
		public TParameterDeclarationList getArgTypeList()
		{
			return this.argTypeList;
		}

		// Token: 0x06000305 RID: 773 RVA: 0x002F95FC File Offset: 0x002F77FC
		public TAlterFunctionStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstalterfunction;
		}

		// Token: 0x06000306 RID: 774 RVA: 0x002F9610 File Offset: 0x002F7810
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TAlterFunctionSqlNode talterFunctionSqlNode = (TAlterFunctionSqlNode)this.rootNode;
			this.functionName = talterFunctionSqlNode.FunctionName;
			this.argTypeList = talterFunctionSqlNode.ArgTypeList;
			return 0;
		}

		// Token: 0x06000307 RID: 775 RVA: 0x002F9654 File Offset: 0x002F7854
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000308 RID: 776 RVA: 0x002F9664 File Offset: 0x002F7864
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001093 RID: 4243
		private TObjectName functionName;

		// Token: 0x04001094 RID: 4244
		private TParameterDeclarationList argTypeList;
	}
}
